package com.gpscookie.android.widget;

import android.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ImageButtonWithLabel extends LinearLayout {

	public ImageButtonWithLabel(Context context, AttributeSet attrs) {
		super(context, attrs);		
		this.inflate(context, com.gpscookie.test.android.R.layout.imagebutton, this);
		TypedArray array = getContext().obtainStyledAttributes(attrs, com.gpscookie.test.android.R.styleable.ImageButtonWithLabel);
		TextView txt = (TextView)this.findViewById(com.gpscookie.test.android.R.id.imagebuttonlabel);
		txt.setText(array.getString(com.gpscookie.test.android.R.styleable.ImageButtonWithLabel_label));
		array.recycle();		
	}



}
